#空气质量查询工具
# x = 1
# while x == 1:
#     a = int(input("请输入pm2.5的值:"))
#     if a<=50 :
#         print("空气质量优")
#     elif  100>= a >=50:
#         print("空气质量良")
#     elif 150>= a >= 101:
#         print("轻度污染")
#     elif 200>= a >= 151:
#         print("中度污染")
#     elif 300>= a >= 201:
#         print("重度污染")
#     elif a>300:
#         print("重度污染")
#     else:
#         print("空气质量良")
#     h = input("输入Q退出:")
#     if h == "Q":
#         break
#     else:
#         pass
# #根据分数定等级
# x = 1
# while x == 1:
#     a = input("请输入你的分数:")
#     if a.isdigit():
#         if int(a) < 0 and int(a) > 100:
#             print("请输入正确的分数:")
#         elif int(a) <= 100 and int(a) >= 85:
#             print("优秀")
#         elif int(a) <= 85 and int(a) >= 60:
#             print("良好")
#         elif int(a) < 60 and int(a) >= 0:
#             print("不及格")
#             break
#     else:
#         print("请输入数字")

#计算银行存钱的福利
benjin = int(input("请输入你的本金："))
mubiao = int(input("请输入你的目标金额："))
year = 1
while benjin<mubiao:
    lixi=benjin*0.05
    print(benjin+lixi)
    benjin=benjin+lixi
    year += 1
    print(f"需要{year-1}年")

